#!/usr/bin/expect

set timeout 5
spawn ssh -l tsunade web1
expect "\$ "
send "cd konoha-et2011\n"
expect "\$ "
send "svn up\n"
expect "\$ "
send "cd ../src/konoha-read-only/konoha\n"
expect "\$ "
send "svn up\n"
expect "revision"
send "cd build\n"
expect "\$ "
send "make && sudo make install\n"
expect "tsunade: "
send "konoha\n"
expect "\$ "
send "exit\n"

set timeout 5
spawn ssh -l tsunade web2
expect "\$ "
send "cd konoha-et2011\n"
expect "\$ "
send "svn up\n"
expect "\$ "
send "cd ../konoha-readonly/konoha\n"
expect "\$ "
send "svn up\n"
expect "revision"
send "cd build\n"
expect "\$ "
send "make && sudo make install\n"
expect "tsunade: "
send "konoha\n"
expect "\$ "
send "exit\n"

set timeout 5
spawn ssh -l tsunade db1
expect "\$ "
send "cd konoha-et2011\n"
expect "\$ "
send "svn up\n"
expect "\$ "
send "cd ../src/konoha-read-only/konoha\n"
expect "\$ "
send "svn up\n"
expect "revision"
send "cd build\n"
expect "\$ "
send "make && sudo make install\n"
expect "tsunade: "
send "konoha\n"
expect "\$ "
send "exit\n"

set timeout 5
spawn ssh -l tsunade diag
expect "\$ "
send "cd konoha-et2011\n"
expect "\$ "
send "svn up\n"
expect "\$ "
send "cd ../Developments/konoha\n"
expect "\$ "
send "svn up\n"
expect "revision"
send "cd build\n"
expect "\$ "
send "make && sudo make install\n"
expect "Password:"
send "konoha\n"
expect "\$ "
send "exit\n"

interact
